﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/admin/admin.master" AutoEventWireup="true" CodeBehind="Prescription.aspx.cs" Inherits="web.admin.Prescription"
     Title="中药管理" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script language="javascript" type="text/javascript" src="../JavaScripts/common.js"></script>

    <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tbody>
            <tr>
                <td  style="FONT-SIZE: 12px">
                    <asp:Button ID="BtnSetSelectedAsClassic" runat="server" Text="将选中项设置为经典药方" OnClick="BtnSetSelectedAsClassic_Click" OnClientClick='return confirm("确定要将选中项设置为经典药方吗?")' />
                </td>
            </tr>
	        <tr>
	            <td>
                   <asp:GridView ID="nonClassicPrescriptionList" runat="server" AutoGenerateColumns="False"  DataKeyNames="id" SkinID="orange">
                        <Columns>
                        
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <asp:Label ID="lblHospitalTitle" Text="医院" runat="server"/>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblHospital" Text='<%# Eval("DoctorHospital") %>' runat="server"/>
                                </ItemTemplate>
                                <ItemStyle Width="20%" HorizontalAlign="Left"/>
                            </asp:TemplateField>  
                            
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <asp:Label ID="lblDoctorNameTitle" Text="医生" runat="server"/>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblDoctorName" Text='<%# Eval("DoctorName") %>' runat="server"/>
                                </ItemTemplate>
                                <ItemStyle Width="20%" HorizontalAlign="Left"/>
                            </asp:TemplateField>  
                            
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <asp:Label ID="lblNameTitle" Text="中药方名称" runat="server"/>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblName" Text='<%# Eval("Name") %>' runat="server"/>
                                </ItemTemplate>
                                <ItemStyle Width="30%" HorizontalAlign="Left"/>
                            </asp:TemplateField>  
                            
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <asp:Label ID="lblDiseaseNameTitle" Text="疾病名词" runat="server"/>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblDiseaseName" Text='<%# Eval("DiseaseName") %>' runat="server"/>
                                </ItemTemplate>
                                <ItemStyle Width="40%" HorizontalAlign="Left"/>
                            </asp:TemplateField>  
                            
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <input id="chkAll" onclick="javascript:SelectAllCheckboxes(this);" runat="server"
                                        type="checkbox" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chk" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>                                       
                        </Columns>
                    </asp:GridView> 
	            </td>
	        </tr>
	    </tbody>
    </table>	  
</asp:Content>
